/**
 * @author Santa Antilles
 * @description 用户填写调查会用到的接口
 * @date 2023/12/28-04:01:32
 */

import request from "../../utils/request.js";

// 查询全部调查
function queryAllReleaseSurveys(query){
    return request({
        url: '/main/survey/query',
        method: 'get',
        params: query,
        isToken: true
    })
}

// 查询某调查的所有子项，参数String(bigint)
function querySurveyItem(id){
    return request({
        url: '/main/survey/'+id,
        method: 'get',
        isToken: true
    })
}

// 参数：SurveySubmit列表
function insertIntoNewSubmit(data){
    return request({
        url: '/main/survey/add',
        data: data,
        method: 'post',
        isToken: true
    })
}

export {queryAllReleaseSurveys, querySurveyItem, insertIntoNewSubmit}